<template>
	<div class="sear">
		
			<form action="/">
				  <van-search
				    v-model="value"
				    placeholder="请输入搜索关键词"
				    show-action
				    @search="onSearch"
				    @cancel="onCancel"
				  />
		</form>
	</div>
</template>

<script>
	import { Search } from 'vant';
	export default{
		name:'Search',
		components:{
			[Search.name]:Search
		},
		data(){
			return{
				
			}
		},
		methods:{
			onSearch(){
				console.log("无效")
			},
			onCancel(){
				this.$router.go(-1);
			}
		}
	}
</script>

<style>
</style>